package cn.bgw.compare.manager.impl;

import cn.bgw.compare.manager.TradeLogManager;
import cn.bgw.compare.mapper.TradelogMapper;
import cn.bgw.compare.model.Tradelog;
import cn.bgw.compare.model.TradelogExample;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class TradeLogManagerImpl implements TradeLogManager {
    @Autowired
    private TradelogMapper tradelogMapper;

    @Override
    public List<Tradelog> selectAll() {
        TradelogExample example = new TradelogExample();
        return tradelogMapper.selectByExample(example);
    }
}
